package com.zz.parkingsystem.entity;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 用户反馈表
 * @TableName t_user_feedback
 */
@Data
public class UserFeedback implements Serializable {
    /**
     * 用户反馈订单编号
     */
    private Integer ufId;

    /**
     * 账号id
     */
    private Integer accId;

    /**
     * 反馈流水号
     */
    private String ufNo;

    /**
     * 反馈内容
     */
    private String ufContent;

    /**
     * 反馈图片
     */
    private String ufImg;

    /**
     * 反馈时间
     */
    private Date ufFeedbackTime;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UserFeedback other = (UserFeedback) that;
        return (this.getUfId() == null ? other.getUfId() == null : this.getUfId().equals(other.getUfId()))
            && (this.getAccId() == null ? other.getAccId() == null : this.getAccId().equals(other.getAccId()))
            && (this.getUfNo() == null ? other.getUfNo() == null : this.getUfNo().equals(other.getUfNo()))
            && (this.getUfContent() == null ? other.getUfContent() == null : this.getUfContent().equals(other.getUfContent()))
            && (this.getUfImg() == null ? other.getUfImg() == null : this.getUfImg().equals(other.getUfImg()))
            && (this.getUfFeedbackTime() == null ? other.getUfFeedbackTime() == null : this.getUfFeedbackTime().equals(other.getUfFeedbackTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUfId() == null) ? 0 : getUfId().hashCode());
        result = prime * result + ((getAccId() == null) ? 0 : getAccId().hashCode());
        result = prime * result + ((getUfNo() == null) ? 0 : getUfNo().hashCode());
        result = prime * result + ((getUfContent() == null) ? 0 : getUfContent().hashCode());
        result = prime * result + ((getUfImg() == null) ? 0 : getUfImg().hashCode());
        result = prime * result + ((getUfFeedbackTime() == null) ? 0 : getUfFeedbackTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", ufId=").append(ufId);
        sb.append(", accId=").append(accId);
        sb.append(", ufNo=").append(ufNo);
        sb.append(", ufContent=").append(ufContent);
        sb.append(", ufImg=").append(ufImg);
        sb.append(", ufFeedbackTime=").append(ufFeedbackTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}